//
//  SecondVC.m
//  FKTabBarController
//
//  Created by 云眼科技 on 16/7/30.
//  Copyright © 2016年 CloudEyes. All rights reserved.
//

#import "SecondVC.h"
#import "FKTabBarController/FKTabBar.h"

@interface SecondVC ()

@end

@implementation SecondVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.automaticallyAdjustsScrollViewInsets = NO;
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(gotoNextVC)];
    [self.view addGestureRecognizer:tap];
    
    
//    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"1.jpg"]];
    
    
    NSMutableArray <NSString *> *array = [[NSMutableArray alloc] init];
    
    for (int i = 0; i < 10; i ++) {
        [array addObject:@"推荐"];
    }
    
    
    FKTabBar *tabBar = [[FKTabBar alloc] initWithFrame:CGRectMake(0, 64, 375, 40) titleArray:array];
    
    
    //    self.navigationItem.titleView = tabBar;
    
    [self.view addSubview:tabBar];
    
}


-(void)gotoNextVC{
    [self dismissViewControllerAnimated:YES completion:nil];
}





@end
